package SpringT.context;

import SpringT.Knight;
import com.sun.org.apache.bcel.internal.util.ClassPath;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class KnightContext {

    public static void main(String[] args) {
//        ClassPath context = new ClassPath("MATA-INF/SpringT/config/KnightConfig.java");
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("src/main/resources/knight.xml");
        Knight knight = context.getBean(Knight.class);
        knight.embarkQuest();
        context.close();

    }

}
